<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="__PUBLIC__/Admin/css/H-ui.css"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/lib/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css"></link>
<script type="text/javascript" src="__PUBLIC__/Admin/js1/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
<title>添加角色</title>
</head>
<body>
<table>
     <tr>
          <th width="100" class="text-r"><span class="c-red">*</span> 用户名：</th>
          <td><input type="text" style="width:200px" class="input-text"  id="name"></td>
     </tr>
     </table>
        &nbsp;&nbsp;
       <div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<button class="btn btn-success radius" id="commit" name="admin-role-save"><i class="icon-ok"></i> 确定</button>
			</div>
		</div>
<script>
$(function(){
	$('#commit').click(function(){
		var  name = $('#name').val();
		$.post('__APP__/Admin/Role/role_add',{name:name},function(obj){
			if(obj.pass==1){
				layer.msg(obj.msg,{time:1000});
			}
		},'json')
	})
})
</script>
</body>
</html>